package com.dt.app.modules.shopping.entities;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 鸿源塔基
 * @since 2023-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_item")
@ApiModel(value="OrderItem对象", description="")
public class OrderItem implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "order_Item_id", type = IdType.AUTO)
    private Long orderItemId;

    @ApiModelProperty(value = "订单id")
    @TableField("order_sales_id")
    private Long orderSalesId;

    @ApiModelProperty(value = "商家id")
    @TableField("sellers_id")
    private Integer sellersId;

    @ApiModelProperty(value = "店家用户id")
    @TableField("hy_user_id")
    private Integer hyUserId;

    @ApiModelProperty(value = "产品id")
    @TableField("product_id")
    private Integer productId;

    @ApiModelProperty(value = "规格关联id")
    @TableField("product_Type_Price_Id")
    private Long productTypePriceId;

    @ApiModelProperty(value = "产品规格组合")
    @TableField("zuhe")
    private String zuhe;

    @ApiModelProperty(value = "产品栏目路径")
    @TableField("category_Path")
    private String categoryPath;

    @ApiModelProperty(value = "礼券id")
    @TableField("gift_Certificate_Id")
    private Integer giftCertificateId;

    @ApiModelProperty(value = "1产品 2服务 3礼券")
    @TableField("item_type")
    private Integer itemType;

    @ApiModelProperty(value = "添加时间")
    @TableField("add_Time")
    private LocalDateTime addTime;

    @ApiModelProperty(value = "数量")
    @TableField("quantity")
    private Integer quantity;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "折后单价")
    @TableField("discount_Price")
    private BigDecimal discountPrice;

    @ApiModelProperty(value = "快递费")
    @TableField("Logistics_cost")
    private BigDecimal logisticsCost;

    @ApiModelProperty(value = "需支付总金额")
    @TableField("item_total")
    private BigDecimal itemTotal;

    @ApiModelProperty(value = "0 1已支付 5已评论")
    @TableField("item_Status")
    private Integer itemStatus;


}
